package com.clear.subject.application.convert;

import com.clear.subject.application.dto.SubjectAnswerDTO;
import com.clear.subject.application.dto.SubjectInfoDTO;
import com.clear.subject.domain.entity.SubjectAnswerBO;
import com.clear.subject.domain.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目答案DTO的转换
 */
@Mapper
public interface SubjectAnswerDTOConverter {

    SubjectAnswerDTOConverter INSTANCE = Mappers.getMapper(SubjectAnswerDTOConverter.class);

    SubjectAnswerBO convertDtoToAnswerBO(SubjectAnswerDTO subjectAnswerDTO);

    List<SubjectAnswerBO> convertDtoToAnswerBOList(List<SubjectAnswerDTO> subjectAnswerDTOList);

}
